package com.zzgele.qmzb.api.dao;

import com.zzgele.qmzb.api.core.Mapper;
import com.zzgele.qmzb.api.model.TicketSwapLog;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

@Repository
public interface TicketSwapLogMapper extends Mapper<TicketSwapLog> {

    @Select("select  changes,create_time from ticket_swap_log where uid=#{uid} order by create_time desc ")
    List<HashMap> list(@Param("uid") Long uid);
}